import ChatPlus from '../../components/ChatPlus';

// This function tells Next.js which dynamic pages to build.
// You should replace this with your own logic, for example,
// fetching a list of chats from your database or an API.
export async function generateStaticParams() {
  // For now, we'll just generate a few example pages.
  const chats = [{ id: '1' }, { id: '2' }];

  return chats.map((chat) => ({
    chatId: chat.id,
  }));
}

export default function ChatPage({ params }: { params: { chatId: string } }) {
  // You can now use the chatId from params if needed, for example:
  // console.log(params.chatId);
  return <ChatPlus />;
} 